<template>
  <div>
    <ul>
      <li v-for="(item ,index) in code2" :key="index">{{item}}
       <button @click="del(index)">删除</button>
      </li>
    </ul>
    <button @click="sheng">生成</button>
  </div>
</template>

<script>
export default {
  methods:{
    del(ind){
      this.$emit('dell',ind)
    },
    sheng(){
      this.$emit('shen')
    }
  },
props:['code2']
}
</script>

<style>

</style>